//
//  OrderInfo.swift
//  AirlineReservation
//
//  Created by Kevin on 2020/1/21.
//  Copyright © 2020 Kevin. All rights reserved.
//

import UIKit

class OrderInfo: NSObject {
    
    @objc var departdate:String?
    @objc var arrivaldate:String?
    @objc var departtime:String?
    @objc var arrivaltime:String?
    @objc var city:String?
    @objc var endcity:String?
    @objc var departterminal:String?
    @objc var arrivalterminal:String?
    @objc var boardinggate:String?
    @objc var craft:String?
    @objc var flightname:String?
    @objc var food:String?
    @objc var linkmanid:Int = 0
    @objc var mileage:Double = 0
    @objc var miletime:String?
    @objc var orderid:String?
    @objc var passengerid:Int = 0
    @objc var userid:String?
    @objc var createtime:String?
    @objc var updatetime:String?
    @objc var seatnumber:String?
    @objc var flightnumberid:String?
    @objc var cabinname:String?
    @objc var ticketprice:Int = 0
    @objc var orderstatus:Int = 0
    @objc var changorder:Int = 0
    
    init(dict:[String:Any]) {
        super.init()
        setValuesForKeys(dict)
    }
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
    }
    
    override var description: String {
        return dictionaryWithValues(forKeys: ["createtime","orderstatus","flightnumberid","cabinname","city","endcity","departterminal","arrivalterminal","departdate","arrivaldate","ticketprice"]).description
    }
}
